<!DOCTYPE html>
<!-- Template by Free Website Templates -->
<?php
 session_start();
?>
<html>
	<head>
		<meta charset="utf-8"/>
		<script language=JavaScript>
			var brzinakucanja = 200;
			var pauzapor = 2000;
			var vremeid = null;
			var kretanje = false;
			var poruka = new Array();
			var slporuka = 0;
			var bezporuke = 0;
			poruka[0] ="--- Du lịch Việt ---"
			function prikaz() {
			   var text = poruka[slporuka];
			   if (bezporuke < text.length) {
			      if (text.charAt(bezporuke) == " ")
			               bezporuke++
			           var ttporuka = text.substring(0, bezporuke + 1);
			           document.title = ttporuka;
			           bezporuke++
			           vremeid = setTimeout("prikaz()", brzinakucanja);
			            kretanje = true;
			   } else {
			      bezporuke = 0;
			      slporuka++
			      if (slporuka == poruka.length)
			         slporuka = 0;
			      vremeid = setTimeout("prikaz()", pauzapor);
			      kretanje = true;
			   }
			}
			function stop() {
			   if (kretanje)
			      clearTimeout(vremeid);
			   kretanje = false
			}
			function start() {
			   stop();
			   prikaz();
			}
			start();
		</script>
        <link href="images/icon.ico" type="image/vnd.microsoft.icon" rel="icon">
        <link rel="stylesheet" href="css/default.css" type="text/css" />
        <link rel="stylesheet" type="text/css" href="css/style_slide_anh.css" />
        <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script language="javascript" type="text/javascript" src="js/jquery.easing.1.3.js"></script>
        <script language="javascript" type="text/javascript" src="js/script_slide_anh.js"></script>
        <script type="text/javascript" src="js/tab_noidung.js"></script>
</head>
<body>
	<?php require('connect.php'); ?>
	<?php include('top_info.php'); ?>
	<div id="page">
		<div id="header"><!---------------------bat dau header------------------------->
        	<?php include('header.php'); ?>
        </div>
		<div id="content">
			<!---------------------menu trai + noi dung------------------------->
			<div id="trai">
			<!---------------------menu trai------------------------->
				<div id="menu_trai">
					<?php include('menu_trai.php'); ?>
			    </div>
            </div>
			<!---------------------noi dung------------------------->
			<div id="noi_dung">
				<?php switch(@$_REQUEST['id'])
					{
					case "chitiet_cn";
						include('chitiet_cn.php'); break;
					case "ttkhachhang";
						include('tt_khach_hang.php'); break;
					case "km_ngoai_nuoc";
						include('km_ngoai_nuoc.php');break;
					case "km_trong_nuoc";
						include('km_trong_nuoc.php');break;
					case "yeu_cau_dt";
						include('yeu_cau_dt.php');break;
					case "tintuc_sukien";
						include('tintuc_sukien.php');break;
					case "chitiet_tt":	
						include('chitiet_tt.php'); break;
					case "chi_tiet_dnn":	
						include('chi_tiet_dnn.php'); break;
					case "chi_tiet_dtn":	
						include('chi_tiet_dtn.php'); break;
					case "dat_tour":	
						include('dat_tour.php'); break;
					case "chitiet":	
						include('chitiet.php'); break;
					case "chi_tiet_kt":	
						include('chi_tiet_kt.php'); break;
					case "gioi_thieu":	
						include('gioi_thieu.php'); break;
					case "lienhe":	
						include('lien_he.php'); break;
					case "tour_trong_nuoc":	
						include('tour_trong_nuoc.php'); break;
					case "tour_nuoc_ngoai":	
						include('tour_nuoc_ngoai.php'); break;	
					case "hot_trong_nuoc":	
						include('hot_trong_nuoc.php'); break;
					case "hot_nuoc_ngoai":	
						include('hot_nuoc_ngoai.php'); break;
					case "khach_san":	
						include('khach_san.php'); break;
					case "cam_nang_du_lich":	
						include('cam_nang_du_lich.php'); break;	
					case "chitiet_ks":	
						include('chitiet_ks.php'); break;	
					case "timkiem":	
						include('timkiem.php'); break;
					case "dangky":	
						include('dangky.php'); break;	
					default: 
						include('noi_dung.php');
					}
				?>
			</div>
			<!---kt noi dung---------->
			<!---------------------menu phai------------------------->
			<div id="phai">
				<?php include('menu_phai.php'); ?>
			</div>
		</div>       
		<!---------------------ket thuc content------------------------->
	</div>
	<div id="footer">
		<?php include('footer.php'); ?>
	</div>
	<?php $mysqli->close(); ?>

<?php
	if (!isset($_REQUEST['id']) || $_REQUEST['id'] == "")
		$id = "trang_chu";
	else $id = $_REQUEST['id'];
	if ($id == 'hot_trong_nuoc' || $id == 'km_trong_nuoc') {
		echo "<script type='text/javascript'>
				$(function({$id}){
			  		$('#tour_trong_nuoc').addClass('active1');
				});
				$(function({$id}){
			    	$('#{$id}').addClass('active2');
				});
				</script>";	
	}
	else if ($id == 'hot_nuoc_ngoai' || $id == 'km_ngoai_nuoc') {
		echo "<script type='text/javascript'>
				$(function({$id}){
			  		$('#tour_nuoc_ngoai').addClass('active1');
				});
				$(function({$id}){
					$('#{$id}').addClass('active2');
				});
				</script>";	
	}
	else echo "<script type='text/javascript'>
				$(function({$id}){
			    	$('#{$id}').addClass('active1');
				});
				</script>";
?>
</body>
</html>  